home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / layers.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-01-07  |  1.9 KB  |  91 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef LAYERPALETTE_H
  8. #define LAYERPALETTE_H
  9.  
  10. #include <QList>
  11.  
  12. #include "scribusapi.h"
  13. #include "scrpalettebase.h"
  14. #include "scribusstructs.h"
  15. #include "sclayer.h"
  16.  
  17. class CheckBox;
  18. class QEvent;
  19. class QHBoxLayout;
  20. class QHeaderView;
  21. class QLabel;
  22. class QPushButton;
  23. class QSpinBox;
  24. class QTableWidget;
  25. class QTableWidgetItem;
  26. class QToolButton;
  27. class QVBoxLayout;
  28. class ScComboBox;
  29. class ScribusDoc;
  30.  
  31. class SCRIBUS_API LayerPalette : public ScrPaletteBase
  32. {
  33.     Q_OBJECT
  34.  
  35. public:
  36.     LayerPalette(QWidget* parent);
  37.     ~LayerPalette() {};
  38.     
  39.     
  40.     virtual void changeEvent(QEvent *e);
  41.  
  42.     void setDoc(ScribusDoc* doc);
  43.     void rebuildList();
  44.     
  45.     QTableWidget* Table;    //public for the event filter in scribus.cpp.. TODO
  46.  
  47. public slots:
  48.     void addLayer();
  49.     void dupLayer();
  50.     void removeLayer();
  51.     void upLayer();
  52.     void downLayer();
  53.     void changeName(int row, int col);
  54.     void visibleLayer();
  55.     void printLayer();
  56.     void lockLayer();
  57.     void flowToggleLayer();
  58.     void outlineToggleLayer();
  59.     void toggleAllfromHeader(int index);
  60.     void markLayer();
  61.     void changeOpacity();
  62.     void changeBlendMode(int blend);
  63.     void setActiveLayer(int row, int col);
  64.     void ClearInhalt();
  65.     void markActiveLayer(int layerNumber=-1);
  66.     void languageChange();
  67.  
  68. signals:
  69.     void LayerChanged();
  70.     void LayerActivated(int);
  71.  
  72. protected:
  73.     ScribusDoc* m_Doc;
  74.     QVBoxLayout* LayerPaletteLayout;
  75.     QHBoxLayout* Layout1;
  76.     QHBoxLayout* layout1;
  77.     QLabel* textLabel1;
  78.     ScComboBox* blendMode;
  79.     QLabel* textLabel2;
  80.     QSpinBox* opacitySpinBox;
  81.     QHeaderView* Header;
  82.     QPushButton* newLayerButton;
  83.     QPushButton* duplicateLayerButton;
  84.     QPushButton* deleteLayerButton;
  85.     QPushButton* raiseLayerButton;
  86.     QPushButton* lowerLayerButton;
  87.     ScLayers *layers;
  88. };
  89.  
  90. #endif // LAYERPALETTE_H
  91.